/**
 * ClassName: Exer070305
 * Package: PACKAGE_NAME
 * Description:
 *
 * @Author fjorid
 * @Create 2025/2/19 20:03
 * @Version 1.0
 */
public class PassObject {
    circle circle = new circle();
    public void printAreas(circle c, int time){
        for (int i = 1; i <= time; i++) {
            circle.radius = i;
            double area = circle.findArea(i);
            System.out.println(i+","+area);
        }
    }



    public static void main(String[] args) {
        circle c = new circle();
        PassObject PO = new PassObject();
            PO.printAreas(c,5);
    }

}
class circle {

    double radius  ;

    double findArea( double radius){
        return 3.1415926*radius*radius;
    }
}